package com.toKnow.model.entity;

import java.sql.Timestamp;
import java.util.List;

public class ArticlePub {

    private Integer id;

    private String title;

    private Integer author_id;

    private Timestamp publish_date;

    private Integer is_origin;

    private String content;

    private String attachment;

    private Integer read_number;

    private Integer like_number;

    private Integer collect_number;

    private Integer comment_number;

    private String cover;

    private String digest;
    private List<Integer> tagIds;
    private List<Integer> typeIds;

    public ArticlePub() {
    }

    public ArticlePub(Integer id, String title, Integer author_id, Timestamp publish_date, Integer is_origin, String content, String attachment, Integer read_number, Integer like_number, Integer collect_number, Integer comment_number, String cover, String digest, List<Integer> tagIds, List<Integer> typeIds) {
        this.id = id;
        this.title = title;
        this.author_id = author_id;
        this.publish_date = publish_date;
        this.is_origin = is_origin;
        this.content = content;
        this.attachment = attachment;
        this.read_number = read_number;
        this.like_number = like_number;
        this.collect_number = collect_number;
        this.comment_number = comment_number;
        this.cover = cover;
        this.digest = digest;
        this.tagIds = tagIds;
        this.typeIds = typeIds;
    }

    @Override
    public String toString() {
        return "ArticlePub{" +
            "id=" + id +
            ", title='" + title + '\'' +
            ", author_id=" + author_id +
            ", publish_date=" + publish_date +
            ", is_origin=" + is_origin +
            ", content='" + content + '\'' +
            ", attachment='" + attachment + '\'' +
            ", read_number=" + read_number +
            ", like_number=" + like_number +
            ", collect_number=" + collect_number +
            ", comment_number=" + comment_number +
            ", cover='" + cover + '\'' +
            ", digest='" + digest + '\'' +
            ", tagIds=" + tagIds +
            ", typeIds=" + typeIds +
            '}';
    }

    public List<Integer> getTagIds() {
        return tagIds;
    }

    public void setTagIds(List<Integer> tagIds) {
        this.tagIds = tagIds;
    }

    public List<Integer> getTypeIds() {
        return typeIds;
    }

    public void setTypeIds(List<Integer> typeIds) {
        this.typeIds = typeIds;
    }

    public Integer getId() {
        return id;
    }

    public String getTitle() {
        return title;
    }

    public Integer getAuthor_id() {
        return author_id;
    }

    public Timestamp getPublish_date() {
        return publish_date;
    }

    public Integer getIs_origin() {
        return is_origin;
    }

    public String getContent() {
        return content;
    }

    public String getAttachment() {
        return attachment;
    }

    public Integer getRead_number() {
        return read_number;
    }

    public Integer getLike_number() {
        return like_number;
    }

    public Integer getCollect_number() {
        return collect_number;
    }

    public Integer getComment_number() {
        return comment_number;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public void setAuthor_id(Integer author_id) {
        this.author_id = author_id;
    }

    public void setPublish_date(Timestamp publish_date) {
        this.publish_date = publish_date;
    }

    public void setIs_origin(Integer is_origin) {
        this.is_origin = is_origin;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public void setAttachment(String attachment) {
        this.attachment = attachment;
    }

    public void setRead_number(Integer read_number) {
        this.read_number = read_number;
    }

    public void setLike_number(Integer like_number) {
        this.like_number = like_number;
    }

    public void setCollect_number(Integer collect_number) {
        this.collect_number = collect_number;
    }

    public void setComment_number(Integer comment_number) {
        this.comment_number = comment_number;
    }

    public String getCover() {
        return cover;
    }

    public void setCover(String cover) {
        this.cover = cover;
    }

    public String getDigest() {
        return digest;
    }

    public void setDigest(String digest) {
        this.digest = digest;
    }


}
